{\rtf1\ansi\ansicpg936\cocoartf1671\cocoasubrtf200
{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset134 PingFangSC-Regular;\f2\fnil\fcharset0 Menlo-Regular;
}
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
{\*\expandedcolortbl;;\csgray\c0;}
\paperw11900\paperh16840\margl1440\margr1440\vieww9520\viewh18000\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0

\f0\fs36 \cf0 1. Linux
\f1 \'cf\'c2\'b0\'b2\'d7\'b0
\f0 Django
\f1 \'bf\'f2\'bc\'dc\
apt update\
apt install  python3-pip\
pip3 install django\

\f0 django-admin startproject demo
\f1 \'b4\'b4\'bd\'a8
\f0 demo
\f1 \'cf\'ee\'c4\'bf
\f0 \
python3 manage.py runserver 0.0.0.0:8080\
\
2. 
\f1 \'b0\'b2\'d7\'b0
\f0 uWSGI Web Server\
pip3 install uwsgi\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\partightenfactor0

\f2 \cf2 \CocoaLigature0 uwsgi  --http :9090 --chdir /root/myobject --module myobject.wsgi 
\f1 \'d4\'cb\'d0\'d0\'b7\'fe\'ce\'f1\

\f2 uwsgi  --http :9090 --chdir /root/myobject --module myobject.wsgi \'97daemonize /var/log/uwsgi.log 
\f1 \'c6\'f4\'b6\'af\'ba\'f3\'cc\'a8\'d4\'cb\'d0\'d0\'b7\'fe\'ce\'f1\
\'bd\'ab\'d4\'cb\'d0\'d0\'b7\'fe\'ce\'f1\'c3\'fc\'c1\'ee\'d5\'b3\'cc\'f9\'d6\'c1 /etc/rc.local\'ce\'c4\'bc\'fe\'c4\'da\'bf\'c9\'d2\'d4\'bf\'aa\'bb\'fa\'d7\'d4\'b6\'af\'d4\'cb\'d0\'d0\
\
uWSGI\'be\'b2\'cc\'ac\'d7\'ca\'d4\'b4\'bc\'d3\'d4\'d8\'ce\'ca\'cc\'e2\'b5\'c4\'bd\'e2\'be\'f6\'a3\'ba\
\'b8\'fc\'b8\'c4\'cf\'ee\'c4\'bf settings.py \'d6\'d0\'b5\'c4\'c9\'e8\'d6\'c3\'a3\'ac\'b8\'fc\'b8\'c4\'cf\'ee\'c4\'bf\'c8\'e7\'cf\'c2\'c8\'fd\'cf\'ee\'a3\'ba\
a. debug=False\
b. allow_host=[\'a1\'ae*\'a1\'af]\
c. \'cc\'ed\'bc\'d3STATIC_ROOT =os.path.join(BASE_DIR,\'a1\'b1/var/www\'a1\'b1)\
\'d4\'d9\'bd\'f8\'d0\'d0\'be\'b2\'cc\'ac\'ce\'c4\'bc\'fe\'b5\'c4\'d7\'aa\'d2\'c6 \'d4\'da\'cf\'ee\'c4\'bf\'c4\'bf\'c2\'bc\'cf\'c2\'bd\'f8\'d0\'d0\'a3\'ba Python3 manage.py collectstati\
\'b7\'fe\'ce\'f1\'d4\'cb\'d0\'d0\'c3\'fc\'c1\'ee\'a3\'ba
\f2 uwsgi --http :9090 --chdir /root/myobject --module myobject.wsgi --static-map=/static=/var/www/\

\f1 \'b7\'fe\'ce\'f1\'ba\'f3\'cc\'a8\'d4\'cb\'d0\'d0\'c3\'fc\'c1\'ee\'a3\'ba
\f2 uwsgi --http :9090 --chdir /root/myobct --module myobject.wsgi --static-map=/static=/var/www/ --daemonize /var/log/uwsgi.log\
\

\f1 \'b7\'fe\'ce\'f1\'d4\'cb\'d0\'d0\'d6\'d0\'a3\'ac\'c5\'fa\'b8\'c4\'d7\'f7\'d2\'b5\'c0\'cf\'ca\'a6\'bf\'c9\'d2\'d4\'d7\'d4\'d0\'d0\'b7\'c3\'ce\'cahttp://39.98.165.139:9090\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0

\f0 \cf0 \CocoaLigature1 \
\
3.
\f1 \'d0\'d4\'c4\'dc\'b2\'e2\'ca\'d4\
\'b0\'b2\'d7\'b0apache bench:apt install apache2-utils\
\'b2\'e2\'ca\'d4\'c3\'fc\'c1\'ee\'a3\'baab -c 20 -n 10000 http://*******\
20\'b8\'f6\'b2\'a2\'b7\'a2\'d3\'c3\'bb\'a7\'b7\'c3\'ce\'ca10000\'b4\'ce}